#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int main()
{
	char c;
	do
	{
		c = getchar();
		if (48 <= c && c <= 57)
			continue;
		else if ('A' <= c && c <= 'Z')
			printf("%c", c + 32);
		else if ('a' <= c && c <= 'z')
			printf("%c", c - 32);
		else if (c != EOF)
			printf("%c", c);
	} while (c != EOF);
	system("pause");
	return 0;
}